package cn.sc.summer.mybatis.model;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import cn.sc.summer.constant.mybatisplus.MybatisConstant;
import cn.sc.summer.mybatis.annotation.table.TableFieldX;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 类名：实体类公共信息集成对象-租户
 *
 * @author a-xin
 * @date 2023/8/13 21:29
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public abstract class BaseTenantModel extends BaseUserModel implements Serializable {

    private static final long serialVersionUID = -6867156232825350373L;

    /**
     * 租户ID
     */
    @TableField(value = MybatisConstant.TENANT_FILED_TABLE, fill = FieldFill.INSERT)
    @TableFieldX(length = 32, comment = "租户ID")
    private String dataTenantId;

}
